Klasse DirectoryPdfSource
java.lang.Object
com.inet.pdfc.config.DirectoryPdfSource
This is a simple directory listing interface for the batch comparison. Feel free to override the implementation to
serve PDFs from an FTP server or to a implement recursive file search for instance.
- Seit:
- i-net PDFC 3.0
-
Konstruktorübersicht
KonstruktorenModifikatorKonstruktorBeschreibungDirectoryPdfSource(File directory) Creates the directory source for a file directory.protectedDirectoryPdfSource(String name) Creates an empty directory source.DirectoryPdfSource(String name, PdfSource... sources) Creates an artificial directory source -
Methodenübersicht
Modifikator und TypMethodeBeschreibungprotected voidaddPdfSource(PdfSource source) Adds a PDF source to the directory.getName()Returns the name of the directory if setgetPdfSource(String name) Returns a PDF source from the directory.Returns all PDF sources registered to this directorytoString()
-
Konstruktordetails
-
DirectoryPdfSource
Creates an empty directory source. Use this constructor to override the default implementation.- Parameter:
name- a name describing this PdfSource, used for the notification messages about missing PDFs in the PdfSorce.- Seit:
- i-net PDFC 3.0
-
DirectoryPdfSource
Creates the directory source for a file directory. All files not matter their extension which are directly in this directory (not in a sub-directory) will be compared.- Parameter:
directory- the directory to get the files from- Löst aus:
IllegalArgumentException- thrown in case the directory is not readable or not a directory- Seit:
- i-net PDFC 3.0
-
DirectoryPdfSource
-
-
Methodendetails
-
addPdfSource
Adds a PDF source to the directory. If a source of the same name already exists, it will be replaced.- Parameter:
source- the PDF source to add, must not benull- Seit:
- i-net PDFC 3.0
-
getPdfSources
-
getPdfSource
Returns a PDF source from the directory. May returnnullif the donated resource does not exist in the directory.- Parameter:
name- the name of the requested PDF source- Gibt zurück:
- the PDF source where getName().equals( name ) or
nullif there is no such PDF source registered - Seit:
- i-net PDFC 3.0
-
getName
Returns the name of the directory if set- Gibt zurück:
- the name of the directory, may be
null - Seit:
- i-net PDFC 3.0
-
toString
-